package com.nation.serviceImpl;

import com.nation.dao.ResearchDao;
import com.nation.domain.VImportantResearchWork;
import com.nation.service.ResearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.security.x509.RDN;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/9.
 */
@Service
public class ResearchServiceImpl implements ResearchService{
    @Autowired
    private ResearchDao ResearchDao;
    @Override
    public List<VImportantResearchWork> findAll() {
        return ResearchDao.findAll();
    }

    @Override
    public VImportantResearchWork findByCountryCode(String country_code) {
        return ResearchDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VImportantResearchWork vImportantResearchWork) {
        return null;//ResearchDao.update();
    }

    @Override
    public List<VImportantResearchWork> findByLimit(Map<String, Object> map) {
        return ResearchDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VImportantResearchWork vImportantResearchWork) {
        return ResearchDao.insert(vImportantResearchWork);
    }

    @Override
    public List<VImportantResearchWork> findByCondition(Map<String, Object> map) {
        return ResearchDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return null;
    }

    @Override
    public VImportantResearchWork findById(int id) {
        return ResearchDao.findById(id);
    }
}
